#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() 
{
    int n = 0;
    while (scanf("%d\n", &n) != EOF) 
    {
        int i = 0;
        int arr[] = { 0 };
        for (i = 0; i < n; i++)
        {
            scanf("%d", &arr[i]);
        }
        int count1 = 0;
        int count2 = 0;
        float average = 0;
        float sum = 0;
        for (i = 0; i < n; i++)
        {
            if (arr[i] < 0) 
            {
                count1++;
            }
            if (arr[i] > 0)
            {
                sum += arr[i];
                count2++;
            }
        }
        printf("%d ", count1);
        
        if (count2 == 0)
        {
            printf("0.0");
        }
        else
        {
            average = sum / count2;
            printf("%.1f", average);
        }
        
    }
    return 0;
}